package Enlaces;
import com.ancientprogramming.fixedformat4j.annotation.Record;
import com.ancientprogramming.fixedformat4j.annotation.Field;
import com.ancientprogramming.fixedformat4j.annotation.Align;
import com.ancientprogramming.fixedformat4j.annotation.FixedFormatPattern;

import java.util.Date;


/**
 * A record containing some simple datatypes to show basic parsing and formatting.
 *
 * @author Jacob von Eyben - http://www.ancientprogramming.com
 * @since 1.2.0
 */
//START-SNIPPET: basicrecord
@Record
public class BancoCreditoDetalle {

  @Field(offset = 1, length = 1, paddingChar = ' ')
  public String getStrEspacios() {
    return this.strEspacios;
  }      
  
  /*************************************************************/
  

  @Field(offset = 2, length = 1)  
  public String getStrTipoRegistro() {
    return this.strTipoRegistro;
  }
    
  
  /*************************************************************/
  
  @Field(offset = 3, length = 1)  
  public String getStrTipoProducto() {
    return this.strTipoProducto;
  }
  
  public void setStrTipoProducto( String strTipoProducto ) {
    this.strTipoProducto = strTipoProducto;    
  }
  
  /*************************************************************/


  @Field(offset = 4, length = 20)
  public String getStrNroCtaAbono() {
    return this.strNroCtaAbono;
  }
  
  public void setStrNroCtaAbono( String strNroCtaAbono ) {
    this.strNroCtaAbono = strNroCtaAbono;
  }
  
  /*************************************************************/
  
  @Field(offset = 24, length = 40)
  public String getStrNombreBen() {
    return this.strNombreBen;
  }
  
  public void setStrNombreBen( String strNombreBen ) {
    this.strNombreBen = strNombreBen;
  }
  /*************************************************************/
  
  @Field(offset = 64, length = 2)
  public String getStrEspacios3() {
    return this.strMoneda;
  }
  
  public void setStrMoneda( String strMoneda ) {
    this.strMoneda = strMoneda;
  }
  
  /*************************************************************/
  
  
  @Field(offset = 66, length = 15, align = Align.RIGHT, paddingChar = '0')
  public String getStrImpAbonar() {
    return this.strImpAbonar;
  }
    
  public void setStrImpAbonar( String strImpAbonar ) {
    this.strImpAbonar = strImpAbonar;
  }
  
  /*************************************************************/
  
  @Field(offset = 81, length = 40)
  public String getStrReferenciaAdicional() {
    return this.strReferenciaAdicional;
  }
  
  public void setStrReferenciaAdicional( String strReferenciaAdicional ) {
    this.strReferenciaAdicional = strReferenciaAdicional;
  }
  
  
  /*************************************************************/
  
  @Field(offset = 121, length = 1)
  public String getStrFlagNotaAbono() {
    return this.strFlagNotaAbono;
  }
  /*************************************************************/
  
  @Field(offset = 122, length = 3)
  public String getStrConstDNI() {
    return this.strConstDNI;
  }    
  
  /*************************************************************/
  
  @Field(offset = 125, length = 12, paddingChar = ' ')
  public String getStrNroDNI() {
    return this.strNroDNI;
  }
  
  public void setStrNroDNI( String strNroDNI ) {
    this.strNroDNI = strNroDNI;
  }
  
  /*************************************************************/
  
  @Field(offset = 137, length = 1)
  public String getStrFlagValidarIDCvsCta() {
    return this.strFlagValidarIDCvsCta;
  }
  
  
  
  
  private String strEspacios;
  private String strTipoRegistro = "2";
  private String strTipoProducto = "A"; //Cuenta de Ahorro
  private String strNroCtaAbono;
  private String strNombreBen;
  private String strMoneda = "S/";
  private String strImpAbonar;
  private String strReferenciaAdicional;  
  private String strFlagNotaAbono = "0";  
  private String strConstDNI = "DNI";
  private String strNroDNI;
  private String strFlagValidarIDCvsCta = "1";
  
  
  
}

